Constructor Summary |
TunnelData(long _objectId,
java.lang.String _className,
java.lang.String[] _interfaceNames,
int _requestType,
java.lang.String methodName,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
constructor used by Tunneling only |
Method Summary |
java.lang.Object |
clone()
|
static Marshalable |
createConstructRequest(java.lang.String className,
java.lang.String[] interfaceNames,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
|
static Marshalable |
createDestructRequest(long objectId)
|
static Marshalable |
createInvokeRequest(long objectId,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.String serverUrl)
|
static java.lang.String |
createMethodString(java.lang.String methodName,
java.lang.Class[] argTypes)
|
static Marshalable |
createReferenceRequest(long objectId,
java.lang.String serverUrl)
|
static Marshalable |
createStubRequest(java.lang.String[] interfaceNames,
java.lang.String serverUrl)
|
static boolean[] |
findPrimitives(java.lang.Class[] argsTypes)
Helper method for finding primitive types for method arguments |
java.lang.Object[] |
getArguments()
|
java.lang.reflect.Constructor |
getConstructor()
|
java.lang.Throwable |
getException()
|
java.lang.String[] |
getInterfaceNames()
|
java.lang.Class[] |
getInterfaces()
|
java.lang.reflect.Method |
getMethod(java.lang.Class cl)
|
long |
getObjectId()
|
int |
getRequestId()
|
int |
getRequestType()
|
java.lang.Object |
getResult()
|
java.lang.String |
getServerUrl()
|
long |
getSessionId()
|
void |
setArguments(java.lang.Object[] os)
|
void |
setConstructor(java.lang.Class[] _argTypes)
|
void |
setException(java.lang.Throwable ex)
|
void |
setInterfaceNames(java.lang.String[] _interfaceNames)
|
void |
setMethod(java.lang.String _methodName,
java.lang.Class[] argTypes)
|
void |
setObjectId(long id)
|
void |
setRequestType(int type)
|
void |
setResult(java.lang.Object obj)
|
void |
setServerUrl(java.lang.String _serverUrl)
|
boolean |
supportsDynamicProxy()
|
static boolean |
supportsDynamicProxyLocal()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TunnelData
public TunnelData(long _objectId,
java.lang.String _className,
java.lang.String[] _interfaceNames,
int _requestType,
java.lang.String methodName,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
- constructor used by Tunneling only
- Parameters:
objectId
- unique id of remote objectclassName
- class name of remote objectinterfaceName
- remote interface name of remote objectmethodName
- name of remote method in remote interfacemethod
- Method object for reflection needsserverUrl
- remote host nameclientUrl
- local host nameargs
- parmeters passing for the invoking metod
supportsDynamicProxyLocal
public static boolean supportsDynamicProxyLocal()
createStubRequest
public static Marshalable createStubRequest(java.lang.String[] interfaceNames,
java.lang.String serverUrl)
createConstructRequest
public static Marshalable createConstructRequest(java.lang.String className,
java.lang.String[] interfaceNames,
java.lang.Class[] argTypes,
java.lang.Object[] args,
java.lang.String serverUrl)
createInvokeRequest
public static Marshalable createInvokeRequest(long objectId,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.String serverUrl)
createReferenceRequest
public static Marshalable createReferenceRequest(long objectId,
java.lang.String serverUrl)
createDestructRequest
public static Marshalable createDestructRequest(long objectId)
findPrimitives
public static boolean[] findPrimitives(java.lang.Class[] argsTypes)
- Helper method for finding primitive types for method arguments
- Parameters:
method
- Method object for explored methodactual
- arguments passing to method- Returns:
- array of flags indicated primitives found for each argument
with same order as args
setRequestType
public void setRequestType(int type)
- Specified by:
setRequestType
in interface Marshalable
getRequestType
public int getRequestType()
- Specified by:
getRequestType
in interface Marshalable
getArguments
public java.lang.Object[] getArguments()
- Specified by:
getArguments
in interface Marshalable
setArguments
public void setArguments(java.lang.Object[] os)
- Specified by:
setArguments
in interface Marshalable
setResult
public void setResult(java.lang.Object obj)
- Specified by:
setResult
in interface Marshalable
getResult
public java.lang.Object getResult()
- Specified by:
getResult
in interface Marshalable
setException
public void setException(java.lang.Throwable ex)
- Specified by:
setException
in interface Marshalable
getException
public java.lang.Throwable getException()
- Specified by:
getException
in interface Marshalable
supportsDynamicProxy
public boolean supportsDynamicProxy()
- Specified by:
supportsDynamicProxy
in interface Marshalable
getRequestId
public int getRequestId()
- Specified by:
getRequestId
in interface Marshalable
getObjectId
public long getObjectId()
- Specified by:
getObjectId
in interface Marshalable
setObjectId
public void setObjectId(long id)
- Specified by:
setObjectId
in interface Marshalable
getInterfaceNames
public java.lang.String[] getInterfaceNames()
- Specified by:
getInterfaceNames
in interface Marshalable
setInterfaceNames
public void setInterfaceNames(java.lang.String[] _interfaceNames)
getInterfaces
public java.lang.Class[] getInterfaces()
- Specified by:
getInterfaces
in interface Marshalable
getConstructor
public java.lang.reflect.Constructor getConstructor()
- Specified by:
getConstructor
in interface Marshalable
setConstructor
public void setConstructor(java.lang.Class[] _argTypes)
- Specified by:
setConstructor
in interface Marshalable
getMethod
public java.lang.reflect.Method getMethod(java.lang.Class cl)
- Specified by:
getMethod
in interface Marshalable
setMethod
public void setMethod(java.lang.String _methodName,
java.lang.Class[] argTypes)
- Specified by:
setMethod
in interface Marshalable
getSessionId
public long getSessionId()
- Specified by:
getSessionId
in interface Marshalable
getServerUrl
public java.lang.String getServerUrl()
- Specified by:
getServerUrl
in interface Marshalable
setServerUrl
public void setServerUrl(java.lang.String _serverUrl)
- Specified by:
setServerUrl
in interface Marshalable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
createMethodString
public static java.lang.String createMethodString(java.lang.String methodName,
java.lang.Class[] argTypes)
Copyright ⌐ JProxy LLC. All Rights Reserved.